<!doctype html>
<html>
<head>
    <include file="public/head"/>
    <title>微信公众号</title>
    <meta name="description" content="ThinkCMF微信公众号插件">
    <meta name="keywords" content="ThinkCMF微信公众号插件">
    <style>

        .form-required {
            color: red;
        }
    </style>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:cmf_plugin_url('Wechat://AdminIndex/index')}">基本信息配置</a></li>
        <li><a href="{:cmf_plugin_url('Wechat://AdminIndex/menuIndex')}">菜单管理</a></li>
        <li><a href="{:cmf_plugin_url('Wechat://AdminIndex/replyIndex')}">自定义回复</a></li>
    </ul>
    <div class="common-form">
        <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:cmf_plugin_url('Wechat://AdminIndex/index')}" method="post">
            <fieldset>
                <div class="tabbable">
                    <div class="tab-content">
                        <div class="tab-pane active">
                            <div class="form-group">
                                <label for="input-wechat_name" class="col-sm-2 control-label"><span class="form-required">*</span>公众号名称</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-wechat_name" name="wechat_name" value="{$wechat_config.wechat_name|default=''}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-wechat_account" class="col-sm-2 control-label">微信原始账号</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-wechat_account" name="wechat_account" value="{$wechat_config.wechat_account|default=''}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-url" class="col-sm-2 control-label">url</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-url" value="{:cmf_plugin_url('Wechat://Weixin/index',[],true)}" readonly>
                                    <p class="help-block">请将此url填入微信公众号管理平台->开发->基本配置->服务器配置->服务器地址(URL)</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-token" class="col-sm-2 control-label">token</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-token" name="token" value="{$wechat_config.token|default=''}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-appid" class="col-sm-2 control-label">appid</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-appid" name="appid" value="{$wechat_config.appid|default=''}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-appsecret" class="col-sm-2 control-label">appsecret</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-appsecret" name="appsecret" value="{$wechat_config.appsecret|default=''}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-encodingaeskey" class="col-sm-2 control-label">encodingaeskey</label>
                                <div class="col-md-6 col-sm-10">
                                    <input type="text" class="form-control" id="input-encodingaeskey" name="encodingaeskey" value="{$wechat_config.encodingaeskey|default=''}">
                                </div>
                            </div>
                            <input type="hidden" name="id" value="{$wechat_config.id|default=''}">
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">{:lang('SAVE')}</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>
        </form>
        <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
    </div>
</div>
<include file="public/scripts"/>
</body>
</html>